<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
<header id="header" th:fragment="common-header">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black"><img src="../img/0.jpg" class="img-header" style="height: 45px;border-radius: 50%;">&nbsp;&nbsp;小说阅读系统
            </div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                    <a href="javascript:;" th:href="@{/user/login}">
                        <span class="iconfont icon-tuichu"> 退出</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <div>
                    <img src="" alt="">
                </div>
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;"><span class="iconfont icon-yonghuguanli"></span>用户管理</a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/user/getalluser}" target="fa"><span
                                    class="iconfont icon-yonghuxinxi-"></span>用户信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><span class="iconfont icon-xitongguanli_yonghuguanli"></span>管理员管理</a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/admin/getalladmin}" target="fa"><span
                                    class="iconfont icon-yonghuguanli"></span>管理员信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><span class="iconfont icon-homeworkselect"></span>小说管理</a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/novel/toNovelPage}" target="fa"><span
                                    class="iconfont icon-xiaoshuo"></span>小说信息</a></dd>

                        </dl>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/chapter/getallchapter}" target="fa"><span
                                    class="iconfont icon-zhangjiechuti"></span>章节信息</a></dd>

                        </dl>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/book/getallbook}" target="fa"><span
                                    class="iconfont icon-zhangjiechuti"></span>书架管理</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><span class="iconfont icon-14"></span>论坛管理</a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/forum/getAllForum}" target="fa"><span
                                    class="iconfont icon-xiaoshuo"></span>帖子信息</a></dd>

                        </dl>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/comment/getAllComment}" target="fa"><span
                                    class="iconfont icon-14"></span>评论管理</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item"><a th:href="@{/message/getallmessage}" target="fa"><span
                            class="iconfont icon-gonggao1"></span>公告管理</a></li>

                </ul>
            </div>
        </div>
        <div class="layui-body">
            <iframe name="fa" src="" frameborder="0"></iframe>
        </div>
        <div class="layui-footer">
            小说阅读系统
        </div>
    </div>
</header>

</body>


<script src="../layui/layui.js"></script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function () {
        var element = layui.element;
        var layer = layui.layer;
        var util = layui.util;
        var $ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            menuLeft: function (othis) { // 左侧菜单事件
                layer.msg('展开左侧菜单的操作', {icon: 0});
            },
            menuRight: function () {  // 右侧菜单事件
                layer.open({
                    type: 1,
                    title: '更多',
                    content: '<div style="padding: 15px;">处理右侧面板的操作</div>',
                    area: ['260px', '100%'],
                    offset: 'rt', // 右上角
                    anim: 'slideLeft', // 从右侧抽屉滑出
                    shadeClose: true,
                    scrollbar: false
                });
            }
        });
    });

</script>
</html>
